Introduction

Climate change is a hot topic throughout the country and the world. It can be very divisive based on political leanings and various other socioeconomic factors. In this report, we will investigate sentiment on climate change in different regions of the United States by searching through news articles from several publications in different regions of the country.

Northwest

Publication Sentiment

Below is a graph for the sentiment range for each publication with lower values representing more negative words and higher values representing more positive words.

Eurasia Review

The Spokesman Review

The Columbian

The Register Guard

The Wyoming Tribune Eagle

Term Frequency and Inverse Document Frequency

Below is a table containing the values for term frequency (tf), inverse document frequency (idf) and a combination of the two (tf_idf) for each word in each of the articles for each publication.

Eurasia Review

The Spokesman Review

The Columbian

The Register Guard

The Wyoming Tribune Eagle

Midwest

Publication Sentiment

Below is a graph for the sentiment range for each publication with lower values representing more negative words and higher values representing more positive words.

Chicago Daily Herald

St Louis Dispatch

The Bismarck Tribune

Telegraph Herald

Star Tribune

Term Frequency and Inverse Document Frequency

Below is a table containing the values for term frequency (tf), inverse document frequency (idf) and a combination of the two (tf_idf) for each word in each of the articles for each publication.

Chicago Daily Herald

Star Tribune

St Louis Post Dispatch

Telegraph Herald

The Bismarck Tribune

Analysis

For all 100 articles used for the Northwest and Midwest regions, I combined each article from the five publications from each region into a corpus. To do this, I created a function that would read a pdf file between the words ‘Body’ and ‘Classification’ as this is the format each article was downloaded in from the Nexas Uni website. I used lapply to apply this function to each file in the directory for each publication, creating a table for each publication where each row is the text of every article. I then ran sentiment analysis on these and displayed the AFINN word positivity values for each news publication. To calculate the term frequency and inverse document frequency, I used the table I described above with the text for each publication, calculated the word count for every word in each article, calculated the total words in each article and added the term frequency and inverse document frequency by using the bind_tf_idf function. According to the analysis done here, I have found that the sentiment for most of the publications was relatively neutral, with words being classified mostly evenly between positive and negative values. Additionally, some of the most commonly occurring words in each article and ‘climate’ and ‘change’. Both of these things are likely due to the method of finding the articles and could be made less of an issue with a more sophisticated article search procedure. As next steps, I would recommend a more in-detail search for articles, being sure to control for frequently-occurring words and cover as wide a sentiment range as possible. This could lead to being able to conduct a more meaningful analysis of climate change sentiment throughout the country.

South and West

For each article, I displayed a wordcloud of the different unique terms in it, and it scales the size of the word based on the word’s frequency. Below that is a wordcloud color coded for sentiment analysis (green indicates positive sentiment and red indicates negative sentiment).

South

1st South Article

2nd South Article

3rd South Article

4th South Article

5th South Article

6th South Article

7th South Article

8th South Article

9th South Article

10th South Article

South DataTable

DataTable of Term Frequency (tf) in South Newspapers and their respective Inverse Document Frequencies (idf)

West

1st West Article

2nd West Article

3rd West Article

4th West Article

5th West Article

6th West Article

7th West Article

8th West Article

9th West Article

10th West Article

West DataTable

DataTable of Term Frequency (tf) in West Newspapers and their respective Inverse Document Frequencies (idf)